/**
 * 
 * 广州锐鹏计算机科技有限公司（www.ruipengkj.com）
 * 
 * 
 * Copyright (c) 2011-2012 RUIPENGKJ.Co.Ltd. All rights reserved.
 * 
 * */
package com.ruipengkj.component;

import javax.swing.JLabel;
import javax.swing.JPanel;

import com.ruipengkj.commons.util.Util;

/**
 * 说明：
 * 等待面板
 * @Author：李智深
 * @Date：2012-03-14
 */
public class WaitComponent extends JPanel{

	private static final long serialVersionUID = 1L;
	private static WaitComponent instance;
	private static JLabel text;
	private WaitComponent(){
		text=new JLabel("正在查询，请稍后！");
		this.add(text);
		this.setBackground(Util.PANEL_COLOR);
	}
	public static WaitComponent getInstance(){
		if(instance==null){
			instance=new WaitComponent();
		}
		text.setText("正在查询，请稍后！");
		return instance;
	}
	
	public void setText(String str) {
		text.setText(str);
	}
}
